import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import 'package:test_app/views/index/index.dart';
import 'package:test_app/views/login/login.dart';

void main() {
  runApp(ProviderScope(child: NamedRouteApp()));
}

class NamedRouteApp extends StatelessWidget {
  static final Map<String, WidgetBuilder> routes = {
    '/': (context) => IndexPage(),
    '/login': (context) => LoginPage(),
  };

  const NamedRouteApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(initialRoute: '/', routes: routes);
  }
}
